import { socketGetRoomState } from "..";
import type { SetedHerosMessageData } from "../types/MessageData";
import { useRoomState } from "@/hooks/useRoomState";

export const setedHerosHandler = (payload: SetedHerosMessageData["payload"]) => {
	const roomState = useRoomState();
	if (roomState.room.value?.roomId === payload.roomId) socketGetRoomState();
};
